const initState = {
    params: '默认数据',
    collapsed: false,
    type: 'send'
}
export const reducer = (state = initState, action) => {
    if (action.type === 'first_send') {
        console.log({ ...state, ...action })
        // return {
        //     ...state,
        //     ...action
        // }
        return Object.assign({}, state, action)
    } else if (action.type === 'set_collapsed') {
        console.log({ ...state, ...action })
        return Object.assign({}, state, action)
    } else {
        return state
    }
}